home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 8 / developer source - volume 8.iso / exepc / jun97 / kenwt101.gif < prev    next >
Graphics Interchange Format  |  1997-10-25  |  56KB  |  617x204  |  4-bit (16 colors)
Labels: text | screenshot | font | number | document
OCR: Name Description Notes Vold Used to indicate that a function Not a type at all - rather the lack of one - and not really necessary. But Quake-C requires it doesn't return anything. just as C and C++ do. Strangely, you can declare variables of type voir - and you will find some defined in the entity type providing markers (see below). Float Floating point A general purpose number type, used for integers and booleans as well. Valid values are 1, 4.7. - 100 but not .5 which would have to be written 0.5 Note also that Quake-C is easily confused by negative constants eg foo 5 would cause a parsing error, foo - 5 won't Used to represent co-ordinates If vector too is defined as vector Fon = (1.0: '0': 1255: then implicitly three float in 3D space. Made up of 3 floats. variables are also defined: foo x, foo_y and foo_2 with the values 1.0, 0 and 255 respectively. String A character string Eg 'You were fragged'. Use'\n for newline. Entity An object in the game, like a This is Quake-C's feeble attempt at Supporting objects. In some ways they're like C structures, player a monster, a wall or a nail except that there's only one structure available - entity - and you cannot deline any new from the nail gun. structures (although you can, if you're careful, extend the entity type and add in new fields). Table 1 - Types available in Quake-C.